﻿@page "/blocks"
@inject IStringLocalizer<Blocks> Localizer

<h3>@Localizer["Title"]</h3>

<h4>@Localizer["SubTitle"]</h4>

<DemoBlock Title="@Localizer["BasicUsageTitle"]" Introduction="@Localizer["BasicUsageIntro"]" Name="Normal" Demo="typeof(Demos.Block.BlockNormal)" />

<DemoBlock Title="@Localizer["TemplateTitle"]" Introduction="@Localizer["TemplateIntro"]" Name="Template" Demo="typeof(Demos.Block.BlockTemplate)" />

<DemoBlock Title="@Localizer["AuthorizateTitle"]" Introduction="@Localizer["AuthorizateIntro"]" Name="Authorizate" Demo="typeof(Demos.Block.BlockAuthorizate)" />

<DemoBlock Title="@Localizer["UsersTitle"]" Introduction="@Localizer["UsersIntro"]" Name="Users" Demo="typeof(Demos.Block.BlockUsers)" />

<DemoBlock Title="@Localizer["RolesTitle"]" Introduction="@Localizer["RolesIntro"]" Name="Roles" Demo="typeof(Demos.Block.BlockRoles)" />

<Tips class="mt-3">
    <p>@((MarkupString)Localizer["Tips"].Value)</p>
</Tips>

<AttributeTable Items="@GetAttributes()" />
